namespace app\index\validate;

use think\Validate;

class tableA extends Validate
{
    protected $rule =   [
        'platform'=>'require|max:20',
		'order_number'=>'require|max:50',
		'delivery_time'=>'require|max:9',
		'receiving_information'=>'require|max:255',
		'express_company'=>'require|max:10',
		'hwb_number'=>'require|max:20',
		'status'=>'require',
		'after_sales_reason'=>'require|max:255'
    ];
    
    protected $message  =   [
        'platform.require' => '平台名称必填',
		'platform.max' => '平台名称最多不能超过20个字符',
		'order_number.require' => '订单号必填',
		'order_number.max' => '订单号最多不能超过50个字符',
		'delivery_time.require' => '日期必填',
		'delivery_time.max' => '日期最多不能超过9个字符',
		'receiving_information.require' => '收件人信息必填',
		'receiving_information.max' => '收件人信息最多不能超过255个字符',
		'express_company.require' => '快递公司名称必填',
		'express_company.max' => '快递公司名称最多不能超过10个字符',
		'hwb_number.require' => '运单号必填',
		'hwb_number.max' => '运单号最多不能超过20个字符',
		'status.require' => '售后状态必选',
		'after_sales_reason.require' => '售后原因必填',
		'after_sales_reason.max' => '售后原因最多不能超过255个字符'
    ];
	
    
}